<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/public/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>合同修改审批</title>
<% request.setAttribute("menu", 1); %>
<%@ include file="/WEB-INF/page/public/contentmeta.jsp"%>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="<%=basePath%>css/global.css" media="all" />
<link rel="stylesheet" href="<%=basePath%>plugins/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="<%=basePath%>css/system.css" media="all"/>
<link rel="stylesheet" href="<%=basePath%>css/tab.css" media="all" />
<link rel="stylesheet" href="<%=basePath%>css/YE.css" media="all" />

<style type="text/css">

.hpul li {float: left;margin: 0 60px 0 0;}

/* 通过 */
.TM-iconytg{display:inline-block;background:url(../images/sprite.png)no-repeat;background-position:-260px 0px;}
.TM-iconytg span{display:block;width:100px;height:90px;}
/* 驳回 */
.TM-iconbh{display:inline-block;background:url(../images/sprite.png)no-repeat;background-position:-260px -90px;}
.TM-iconbh span{display:block;width:100px;height:90px;}
/* 待审批 */
.TM-icondsp{display:inline-block;background:url(../images/sprite.png)no-repeat;background-position:-260px -185px;}
.TM-icondsp span{display:block;width:100px;height:90px;}

</style>

</head>
<body>

<%-- ${cuh}

${moneylog} --%>

<%-- 

${cuh}

<p>
---------------------------

${contract}

<p>
---------------------------

${moneylog} --%>


<c:if test="${cuh.type == 1}">
<div id="TM-layui-pay" >
	<div class="TM-he-tong admin-entering">
		<form class="layui-form TM-entering-form" action="" id="enterform" novalidate="novalidate">
			<div class="layui-form-item TM-hetong-zhengshu">
				<div class="layui-input-block layui-ye-block">
					<div class="YE-hetong-block" style="float:left;">
						<ul class="clefix YE-history-text">
							<c:if test="${cuh.appstate == 0 || cuh.appstate == 1}">
								<li class="TM-icondsp"><span></span></li>
							</c:if>
							<c:if test="${cuh.appstate == 2}">
								<li class="TM-iconytg"><span></span></li>
							</c:if>
							<c:if test="${cuh.appstate == 3}">
								<li class="TM-iconbh"><span></span></li>
							</c:if>
	              		</ul>
						<ul class="clefix YE-history-text">
	              	  		<li>审批状态:
	              	  			<span>
	              	  				<c:if test="${cuh.appstate == 0}">审批中</c:if>
		                			<c:if test="${cuh.appstate == 1}">待审批</c:if>
		                			<c:if test="${cuh.appstate == 2}">审批通过</c:if>
		                			<c:if test="${cuh.appstate == 3}">审批驳回</c:if>
	              	  			</span>
	              	  		</li>
		            		<li>合同金额：<span>${contract.totalamount}</span></li>
		                	<li>签订年限：<span><dic:cf type="1" name="life_type" value="${contract.lifetype}"/></span></li>
	              		</ul>
	              		<ul class="clefix YE-history-textone">
	                  		<li>申请人：<span>${cuh.createuserName}</span></li>
	                  		<li>服务费用：<span>${contract.servicecharge}</span></li>
	                  		<li><span></span></li> 
	              		</ul>
	              		<ul class="clefix YE-history-texttwo">
	                  		<li>单位名称：<span>${cuh.contractInfo.customerInfo.cname}</span></li>
	                  		<li>合同类型: <span><dic:cf type="1" name="contract_type" value="${contract.contracttype}"/></span></li>
	                  		<li><span></span></li>
	              		</ul>
	              		<ul class="clefix YE-history-textone" style="margin-left:100px;width:100%">
	                  		<li>备注：<span>${contract.remark}</span></li>
	              		</ul>
	              		<ul class="clefix YE-history-textone" style="margin-left:100px;width:100%">
	                   		<li>修改内容：<span>${contract.modifyRecord}</span></li>
	              		</ul>
	              		<ul class="clefix YE-history-time">
	                  		<li>签订时间:${contract.signingtime}</li>
	              		</ul>
					</div>
				</div>
				 <c:set  property="rcjgtitle"  var="rcjgtitle" value="人才证书价格" /><c:set  property="qyjgtitle" var="qyjgtitle" value="企业证书价格" />
               <c:set  property="bzsm"  var="bzsm" value="备注" />
				<c:if test="${contract.contracttype==0}"><c:set  property="rytitle"  var="rytitle" value="资质" /><c:set  property="rcjgtitle"  var="rcjgtitle" value="成本价" /><c:set  property="qyjgtitle" var="qyjgtitle" value="代办价格" /></c:if><c:if test="${contract.contracttype==1}"><c:set  property="rytitle"  var="rytitle" value="猎证" /></c:if><c:if test="${contract.contracttype==2}"><c:set  property="rytitle"  var="rytitle" value="培训" /><c:set  property="rcjgtitle"  var="rcjgtitle" value="单价" /><c:set  property="qyjgtitle" var="qyjgtitle" value="总价" /><c:set  property="bzsm"  var="bzsm" value="数量（本）" /></c:if>
				<div class="layui-input-block layui-ye-block">
					<c:forEach var="obj" items="${contract.sublist}">
						<div class="YE-hetong-block" style="float:left;">
							<ul class="clefix hpul">
								<li>${obj.customerInfo.cname}</li>
								<c:if test="${obj.isadditional == 1}">
									<li>其它费用:<span><fmt:formatNumber value="${obj.totalamount}" pattern="#,#00"/>元</span></li> 
								</c:if>
								<c:if test="${obj.isadditional==null||obj.isadditional==0}">
									<li>${rcjgtitle}:<span><fmt:formatNumber value="${obj.totalamount}" pattern="#,#00"/>元</span></li>
		            		 		<li>${qyjgtitle}:<span><fmt:formatNumber value="${obj.alonemoney}" pattern="#,#00"/>元</span></li>
		            		 		<li>${bzsm}:<span>${obj.zsremark}</span></li>
								</c:if>
								<li>所属人:<span>${obj.createuserName}</span></li>
							</ul>
						</div>
					</c:forEach>
				</div>
			</div>
			<div class="entering" style="width:75%;margin-left:122px;">
				<h4>审批记录</h4>
				<table class="site-table table-hover">
					<thead>
						<tr>
							<th style="width:182px;">审批人</th>
							<th style="width:182px;">审批意见</th>
							<th style="width:182px;">审批时间</th>
							<th style="width:170px;">审批状态</th>
						</tr>
					</thead>
					<tbody class="tb_customercontacts">
						<c:forEach var="au" items="${cuh.approveUser}" varStatus="o1">
							<tr>
								<td>${au.createuserName}</td>
								<td>${au.opinion}</td>
								<td><c:if test="${au.state>1}">${au.updatedate}</c:if></td>
								<td class="<c:if test="${au.state==0||au.state==1}">ye-pay-bgtwo</c:if><c:if test="${au.state==2}">ye-pay-bg</c:if><c:if test="${au.state==3}">ye-pay-bgone</c:if>"></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</form>
	</div>
</div>
</c:if>

<c:if test="${cuh.type == 2}">
<!-- 收款 -->
<div id="TM-layui-pay" >
	<div class="TM-he-tong admin-entering">
		<form class="layui-form TM-entering-form" action="" id="enterform" novalidate="novalidate">
			<div class="layui-form-item TM-hetong-zhengshu">
				<div class="layui-input-block layui-ye-block">
					<div class="YE-hetong-block" style="float:left;">
						<ul class="clefix YE-history-text">
	                  		<c:if test="${cuh.appstate == 0 || cuh.appstate == 1}">
								<li class="TM-icondsp"><span></span></li>
							</c:if>
							<c:if test="${cuh.appstate == 2}">
								<li class="TM-iconytg"><span></span></li>
							</c:if>
							<c:if test="${cuh.appstate == 3}">
								<li class="TM-iconbh"><span></span></li>
							</c:if>
	              		</ul>
						<ul class="clefix YE-history-text">
							<li>审批状态
								<span>
	              	  				<c:if test="${cuh.appstate == 0}">审批中</c:if>
		                			<c:if test="${cuh.appstate == 1}">待审批</c:if>
		                			<c:if test="${cuh.appstate == 2}">审批通过</c:if>
		                			<c:if test="${cuh.appstate == 3}">审批驳回</c:if>
	              	  			</span>
							</li>
							<li>打款账户:<span>${moneylog.name}</span></li>
						</ul>
						<ul class="clefix YE-history-textone">
							<li>回款金额:<span>${moneylog.totalamount}元(${moneylog.transfertype==0?"现金":"转账"})</span></li>
							<li>收款账户:<span>${moneylog.bankname}</span></li>
						</ul>
						<ul class="clefix YE-history-textone">
							<li>回款方式:<span>${moneylog.moneytype==0?"预付款":moneylog.moneytype==1?"全款":moneylog.moneytype==2?"中期款":"公示款"}</span></li>
							<li>到帐时间:<span>${moneylog.arrivaltime.substring(0,10)}</span></li>
						</ul>
						<ul class="clefix YE-history-textone" style="margin-left:100px;width:100%">
	                   		<li>修改内容:<span>${moneylog.modifyRecord}</span></li>
	              		</ul>
					</div>
				</div>
			</div>
			<div class="entering" style="width:75%;margin-left:122px;">
				<h4>审批记录</h4>
				<table class="site-table table-hover">
					<thead>
						<tr>
							<th style="width:182px;">审批人</th>
							<th style="width:182px;">审批意见</th>
							<th style="width:182px;">审批时间</th>
							<th style="width:170px;">审批状态</th>
						</tr>
					</thead>
					<tbody class="tb_customercontacts">
						<c:forEach var="au" items="${cuh.approveUser}" varStatus="o1">
							<tr>
								<td>${au.createuserName}</td>
								<td>${au.opinion}</td>
								<td><c:if test="${au.state>1}">${au.updatedate}</c:if></td>
								<td class="<c:if test="${au.state==0||au.state==1}">ye-pay-bgtwo</c:if><c:if test="${au.state==2}">ye-pay-bg</c:if><c:if test="${au.state==3}">ye-pay-bgone</c:if>"></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</form>
	</div>
</div>

</c:if>

<c:if test="${cuh.type == 3}">
<!-- 付款 -->
<div id="TM-layui-pay" >
	<div class="TM-he-tong admin-entering">
		<form class="layui-form TM-entering-form" action="" id="enterform" novalidate="novalidate">
			<div class="layui-form-item TM-hetong-zhengshu">
				<div class="layui-input-block layui-ye-block">
					<div class="YE-hetong-block" style="float:left;">
						<ul class="clefix YE-history-text">
	                  		<c:if test="${cuh.appstate == 0 || cuh.appstate == 1}">
								<li class="TM-icondsp"><span></span></li>
							</c:if>
							<c:if test="${cuh.appstate == 2}">
								<li class="TM-iconytg"><span></span></li>
							</c:if>
							<c:if test="${cuh.appstate == 3}">
								<li class="TM-iconbh"><span></span></li>
							</c:if>
	              		</ul>
						<ul class="clefix YE-history-text">
							<li>审批状态
								<span>
	              	  				<c:if test="${cuh.appstate == 0}">审批中</c:if>
		                			<c:if test="${cuh.appstate == 1}">待审批</c:if>
		                			<c:if test="${cuh.appstate == 2}">审批通过</c:if>
		                			<c:if test="${cuh.appstate == 3}">审批驳回</c:if>
	              	  			</span>
							</li>
							<li>付款金额:<span>${moneylog.totalamount}</span></li>
							<li>来源:<span>${moneylog.source==0?"个人":"中介"}</span></li>
							<li>户名:<span>${moneylog.name}</span></li>
						</ul>
						<ul class="clefix YE-history-textone">
							<li>申请人:<span>${moneylog.createuserName}</span></li>
							<li>付款类型:<span>${moneylog.paytype==0?"预付款":"全款"}</span></li>
							<li></li>
							<li>开户银行:<span>${moneylog.bankname}</span></li>
						</ul>
						<ul class="clefix YE-history-textone">
							<li>证书用途:<span>${moneylog.usetype==0?"挂资质":"挂项目"}</span></li>
							<li>转账类型:<span>${moneylog.transfertype==0?"现金":"转账"}</span></li>
							<li></li>
							<li>帐号:<span>${moneylog.cardnumber}</span></li>
						</ul>
						<ul class="clefix YE-history-textone" style="margin-left:100px;width:100%">
	                  		<li>备注：<span>${moneylog.remark}</span></li>
	              		</ul>
						<ul class="clefix YE-history-textone" style="margin-left:100px;width:100%">
	                   		<li>修改内容:<span>${moneylog.modifyRecord}</span></li>
	              		</ul>
	              		<ul class="clefix YE-history-time">
	                  		<li>申请时间:${cuh.createdate.substring(0,10)}</li>
	              		</ul>
					</div>
				</div>
			</div>
			<div class="entering" style="width:75%;margin-left:122px;">
				<h4>审批记录</h4>
				<table class="site-table table-hover">
					<thead>
						<tr>
							<th style="width:182px;">审批人</th>
							<th style="width:182px;">审批意见</th>
							<th style="width:182px;">审批时间</th>
							<th style="width:170px;">审批状态</th>
						</tr>
					</thead>
					<tbody class="tb_customercontacts">
						<c:forEach var="au" items="${cuh.approveUser}" varStatus="o1">
							<tr>
								<td>${au.createuserName}</td>
								<td>${au.opinion}</td>
								<td><c:if test="${au.state>1}">${au.updatedate}</c:if></td>
								<td class="<c:if test="${au.state==0||au.state==1}">ye-pay-bgtwo</c:if><c:if test="${au.state==2}">ye-pay-bg</c:if><c:if test="${au.state==3}">ye-pay-bgone</c:if>"></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</form>
	</div>
</div>

</c:if>


<%-- ${contract}

${moneylog}

${cuh} --%>

</body>
</html>